package com.up.remoting.util;

import java.text.MessageFormat;

/**
 * @author xueqiang.mi
 * 
 */
public final class URLBuilder {

  public static final String build(String uriPattern, Object... parameters) {
    Object[] arguments = new String[parameters.length];
    for (int i = 0; i < parameters.length; i++) {
      arguments[i] = String.valueOf(parameters[i]);
    }

    return MessageFormat.format(uriPattern, arguments);
  }

  private URLBuilder() {
  }

}
